package com.unknowpupil.oauth2.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;


/**
 * <p>
 * 用户表
 * </p>
 *
 * @author AutoGenerator
 */
@TableName("tb_user")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class TbUser implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)

    private Long id;
    /**
     * 用户名
     */

    @ApiModelProperty(value = "用户名")
    private String username;
    /**
     * 密码，加密存储
     */

    @ApiModelProperty(value = "密码，加密存储")
    private String password;
    /**
     * 注册手机号
     */

    @ApiModelProperty(value = "注册手机号")
    private String phone;
    /**
     * 注册邮箱
     */

    @ApiModelProperty(value = "注册邮箱")
    private String email;

    private Date created;

    private Date updated;

}
